import { SizeEnum } from "./enums/SizeEnum";
import { LayoutEnum } from "./enums/LayoutEnum";
import { ThemeEnum } from "./enums/ThemeEnum";
import { LanguageEnum } from "./enums/LanguageEnum";

const { pkg } = __APP_INFO__;

// Check if the user's operating system uses dark mode
//const mediaQueryList = window.matchMedia("(prefers-color-scheme: dark)");

const defaultSettings: AppSettings = {
  // System Title
  title: pkg.name,
  // System Version
  version: pkg.version,
  // Show Settings
  showSettings: true,
  // Show the tags view
  tagsView: true,
  // Fixed Header
  fixedHeader: true,
  // Show the sidebar logo
  sidebarLogo: true,
  // Layout, default is left-side layout
  layout: LayoutEnum.LEFT,
  // Theme, automatically selected based on the operating system's color scheme
  theme: ThemeEnum.LIGHT, // mediaQueryList.matches ? ThemeEnum.DARK : ThemeEnum.LIGHT,
  // Component Size: default | medium | small | large
  size: SizeEnum.DEFAULT,
  // Language
  language: LanguageEnum.ZH_TW,
  // Theme Color
  themeColor: "#4080FF",
  // Enable or disable watermarking
  watermarkEnabled: false,
  // Watermark content
  watermarkContent: pkg.name,
};

export default defaultSettings;
